package com.neu.po;

import java.util.Date;

public class Book {
    private Integer id;
    private Integer planId;
    private Integer userId;
    private Date time;
    private Double money;
    private Integer state;
    private String tradeno;

    private User user;
    private Plan plan;
    public Book() {
    }

    public Book(Integer id, Integer planId, Integer userId, Date time, Double money, Integer state, String tradeno) {
        this.id = id;
        this.planId = planId;
        this.userId = userId;
        this.time = time;
        this.money = money;
        this.state = state;
        this.tradeno = tradeno;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getPlanId() {
        return planId;
    }

    public void setPlanId(Integer planId) {
        this.planId = planId;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }

    public Double getMoney() {
        return money;
    }

    public void setMoney(Double money) {
        this.money = money;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public String getTradeno() {
        return tradeno;
    }

    public void setTradeno(String tradeno) {
        this.tradeno = tradeno;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public Plan getPlan() {
        return plan;
    }

    public void setPlan(Plan plan) {
        this.plan = plan;
    }

    @Override
    public String toString() {
        return "Book{" +
                "id=" + id +
                ", planId=" + planId +
                ", userId=" + userId +
                ", time=" + time +
                ", money=" + money +
                ", state=" + state +
                ", tradeno='" + tradeno + '\'' +
                ", user=" + user +
                ", plan=" + plan +
                '}';
    }
}
